package com.example.mapper;

import com.example.pojo.Worker;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ：伍绍恒
 * @date ：Created in 2022/11/24 10:55
 * @description：
 * @modified By：
 */
@Mapper
public interface WorkerMapper {
    List<Worker> getAllWorkerLikeName(@Param("name") String name);

    Worker getWorkerById(String id);

    int deleteWorkerById(String id);

    int updateWorkerById(Worker worker);

    int addWorker(Worker worker);
}
